pandas convert hex string to int

54

res = df['Command0'].apply(int, base=16)

print(res)

0    456
1    195
Name: Command0, dtype: int64

Comments

Submit
0 Comments